//封装get请求
import $http from "@/api/myAxios/MyAxios";
import qs from "qs";

const $httpGet = (url, objData) => {
    if (objData === '' || objData == null) {
        objData = ''
    }
    return new Promise(((resolve, reject) => {
        $http.get(url, {
            data: qs.stringify(objData)
        }).then((res) => {
            resolve(res)
        }).catch(res => {
            reject(res)
        })
    }))
}
export default $httpGet
